﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EventClass
{
    public delegate void EventProcessHandler(string eventName, object eventContent);

    public interface IEventNotification
    {
        void SubscribeEvent(string eventName, EventProcessHandler handler);//预定事件
        void UnSubscribeEvent(string eventName, EventProcessHandler handler);//取消预定
        void RaiseEvent(string eventName, object eventContent); //发布事件
    }
}
